package com.zhengshang.api.service;

import com.zhengshang.api.domain.AppGoodsCategory;

import java.util.List;
import java.util.Map;

/**
 * 商品分类Service接口
 *
 * @author zhengshang
 * @date 2022-04-13
 */
public interface IAppGoodsCategoryService {
    /**
     * 查询商品分类
     *
     * @param goodsCategoryId 商品分类ID
     * @return 商品分类
     */
    public AppGoodsCategory selectAppGoodsCategoryById(Long goodsCategoryId);

    /**
     * 查询商品分类列表
     *
     * @param appGoodsCategory 商品分类
     * @return 商品分类集合
     */
    public List<AppGoodsCategory> selectAppGoodsCategoryList(AppGoodsCategory appGoodsCategory);


    /**
     * 查询商品分类列表
     *
     * @param params
     * @return 商品分类集合
     */
    public List<Map> selectAppGoodsCategoryList1(Map params);

    /**
     * 新增商品分类
     *
     * @param appGoodsCategory 商品分类
     * @return 结果
     */
    public int insertAppGoodsCategory(AppGoodsCategory appGoodsCategory);

    /**
     * 修改商品分类
     *
     * @param appGoodsCategory 商品分类
     * @return 结果
     */
    public int updateAppGoodsCategory(AppGoodsCategory appGoodsCategory);

    /**
     * 批量删除商品分类
     *
     * @param goodsCategoryIds 需要删除的商品分类ID
     * @return 结果
     */
    public int deleteAppGoodsCategoryByIds(Long[] goodsCategoryIds);

    /**
     * 删除商品分类信息
     *
     * @param goodsCategoryId 商品分类ID
     * @return 结果
     */
    public int deleteAppGoodsCategoryById(Long goodsCategoryId);

    /**
     * 查询商品分类列表
     *
     * @param navigateId
     * @return 商品分类集合
     */
    public List<AppGoodsCategory> selectAppGoodsCategoryByNavigateId(Long navigateId);

}
